<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@include file="/common/common.jspf" %>
    <script type="text/javascript" src="${ctx}/js/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="${ctx}/js/diagnosis/tongue/add.js">
    </script>
    <script type="text/javascript">
        var editor = null;
        window.onload = function() {

            editor = CKEDITOR.replace('content');
        }
        function test(){
            var content = CKEDITOR.instances.content.getData();
            $("#content").text(content);
            $("#form").submit();
        }
       
    </script>
    <style type="text/css">
        .col-sm-3 {
            width: 15%;
            float: left;
            text-align: right;
        }

        .col-sm-9 {
            width: 85%;
            float: left;
            text-align: left;
        }
        .col-sm-6 {
            width: 60%;
            float: left;
            text-align: left;
        }
        .col-sm-button {
            width: 15%;
            float: left;
            text-align: left;
        }
        label[class^="btn btn-default"] {
            margin-top: -4px;
        }
    </style>
</head>
<body>
<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
<form id="form" name="form" class="form-horizontal" method="post" action="${ctx}/app/tongue/addEntity.shtml">
    <section class="panel panel-default">
        <div class="panel-body" id="question-panel">
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">标题</label>
                </div>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入标题" name="tongueStandardFormMap.title">
                </div>

            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">图片</label>
                </div>
                <div class="col-sm-9">
                    <input type="file" class="form-control system-upload-field" data-for="tongueStandardFormMap.path" placeholder="请上传报告" name="path" style="width: 60%;">
                    <input type="hidden" name="tongueStandardFormMap.path">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label class="control-label">内容</label>
                </div>
                <div class="col-sm-9">
                    <textarea class="form-control" id="content" name="tongueStandardFormMap.content" style="width: 60%;" rows="5"></textarea>
                </div>
            </div>


        </div>
        <footer class="panel-footer text-right bg-light lter">
            <button type="button" onclick="test()" class="btn btn-success btn-s-xs">提交</button>
        </footer>
    </section>
</form>
</body>
</html>
